package com.le.tester.imooc.masterJUC.collections.predecessor;

import java.util.Hashtable;

/**
 * 描述：hashtable,线程安全的hashMap
 */
public class HashtableDemo {
    public static void main(String[] args) {
        Hashtable<String, String> hashtable = new Hashtable<>();
        hashtable.put("testKey", "testVal");
        System.out.println(hashtable.get("testKey"));
    }
}
